package com.gdpu.watermelontimer

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.widget.TextView
import android.view.Gravity
import android.graphics.Color
import android.view.ViewGroup
import android.widget.FrameLayout

class FocusModeActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val frame = FrameLayout(this)
        frame.setBackgroundColor(Color.parseColor("#4ECDC4")) // 绿色背景
        val text = TextView(this)
        text.text = "专注模式中"
        text.textSize = 32f
        text.setTextColor(Color.WHITE)
        text.gravity = Gravity.CENTER
        val params = FrameLayout.LayoutParams(
            ViewGroup.LayoutParams.MATCH_PARENT,
            ViewGroup.LayoutParams.MATCH_PARENT
        )
        frame.addView(text, params)
        setContentView(frame)
    }
} 